package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生管理对象 test_student
 * 
 * @author ruoyi
 * @date 2021-12-21
 */
public class TestStudent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 名字 */
    @Excel(name = "名字")
    private String stuName;

    /** 性别 */
    @Excel(name = "性别")
    private Long stuSex;

    /** 班级 */
    @Excel(name = "班级")
    private String stuClass;

    /** 入学时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入学时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date enterTime;

    /** 头像 */
    @Excel(name = "头像")
    private String avater;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStuName(String stuName) 
    {
        this.stuName = stuName;
    }

    public String getStuName() 
    {
        return stuName;
    }
    public void setStuSex(Long stuSex) 
    {
        this.stuSex = stuSex;
    }

    public Long getStuSex() 
    {
        return stuSex;
    }
    public void setStuClass(String stuClass) 
    {
        this.stuClass = stuClass;
    }

    public String getStuClass() 
    {
        return stuClass;
    }
    public void setEnterTime(Date enterTime) 
    {
        this.enterTime = enterTime;
    }

    public Date getEnterTime() 
    {
        return enterTime;
    }
    public void setAvater(String avater) 
    {
        this.avater = avater;
    }

    public String getAvater() 
    {
        return avater;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("stuName", getStuName())
            .append("stuSex", getStuSex())
            .append("stuClass", getStuClass())
            .append("enterTime", getEnterTime())
            .append("avater", getAvater())
            .toString();
    }
}
